<?php
$host = "localhost";//127.0.0.1
$username = "root";
$password = "";
$db_name = "forum";

mysql_connect("$host", "$username", "$password") 
or die("cannot connect"); 
mysql_select_db("$db_name")or die("cannot select DB");

?>